export enum EngineType {
  workFlow = 'work_flow_new', //工作流
  automation = 'automation', //流程自动化
  serviceArrange = 'service_arrange', //服务编排
}

export const stencilTypeEnum: any = {
  [EngineType.workFlow]: 'BPMN',
  [EngineType.automation]: 'RULE',
};

export enum ChartZoomChangeType {
  IN = 'IN', //放大
  OUT = 'OUT', //缩小
}

export const FieldTypeOptions: any[] = [
  {
    label: 'string',
    value: 'STRING',
  },
  {
    label: 'long',
    value: 'LONG',
  },
  {
    label: 'int',
    value: 'INTEGER',
  },
  {
    label: 'double',
    value: 'DOUBLE',
  },
  {
    label: 'boolean',
    value: 'BOOLEAN',
  },
  {
    label: 'json',
    value: 'JSON',
  },
  {
    label: 'object',
    value: 'OBJECT',
  },
  {
    label: 'array',
    value: 'ARRAY',
  },
];

//合同签署状态
export const SigningStatus: any[] = [
  {
    label: '未签署',
    value: '未签署',
  },
  {
    label: '签署成功',
    value: '签署成功',
  },
];

//编制细分维度
export const hcPlanDimensions:any = {
  "POSITION":"职位",
  "TITLE":"职衔"
}

export const hcOpportunityType:any = {
  "RELEASE":"释放",
  "OCCUPY":"占用"
}

//验编时机
export const hcCheckOpportunity:any = {
  "CLOSE_ACCOUNT":"关闭账号",
  "INITIATE_APPLY":"发起申请",
  "JOB_CHANGE_EFFECTIVE":"异动生效",
  "ADD_ON_JOB":"新增在职",
  "CONFIRM_REPORT":"确认报到",
  "ON_JOB_IMPORT":"在职导入"
}


export const hcOpportunityCode:any = {
  "LEAVE":"离职",
  "JOB_CHANGE":"异动",
  "ONBOARD":"入职",
  "ON_JOB":"在职"
}


//编制细分维度
export enum PlanStatus{
  NOT_START="未开始",
  DOING="进行中",
  DONE="已结束"
}



export const planStatusBgColor:any = {
  NOT_START:"#ECF3FF",
  DOING:"#FFF2E2",
  DONEL:"#E8F6F7"
}

export const planStatusTextColor:any = {
  NOT_START:"#3E79FF",
  DOING:"#FF8800",
  DONEL:"#1EABB8"
}

export enum EdgeType {
  NORMAL = 'normal',
  CONDITION_BRANCH = 'condition_branch',
  DEFAULT_CONDITION_BRANCH = 'default_condition_branch',
  PARALLEL_BRANCH = 'parallel_branch',
}
